package com.yjy.fuyao.ucenter.util;

import lombok.Data;
import org.springframework.beans.factory.InitializingBean;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;
import sun.security.krb5.internal.Ticket;

@Data
@Component
@ConfigurationProperties(prefix = "tc.checkcode")
public class TcCheckCodeProperties implements InitializingBean {
    String captchaAppId;
    String appSecretKey;
    public static String TC_CAPTCHA_APP_ID;
    public static String TC_APP_SECRET_KEY;


    @Override
    public void afterPropertiesSet() throws Exception {
        TC_CAPTCHA_APP_ID = captchaAppId;
        TC_APP_SECRET_KEY = appSecretKey;
    }
}
